// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import axios from 'axios'
import $ from './assets/jquery-1.4.4.min.js'
import Element from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css'
import qs from 'qs'

axios.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded'

// axios.defaults.baseURL = 'http://192.168.0.110:8080/platform'//设置默认基础路径
axios.defaults.baseURL = 'http://39.106.41.247:8080/platform'//设置默认基础路径
// axios.defaults.baseURL = 'http://127.0.0.1:8080/platform'//设置默认基础路径



// axios.defaults.withCredentials=true;//让ajax携带cookie
axios.defaults.withCredentials=false;//让ajax携带cookie

Vue.use(Element);
Vue.prototype.$ajax = axios
Vue.prototype.$qs = qs

Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
